home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / sbcp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.8 KB  |  49 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: sbcp.h,v 1.2 2000/09/19 19:00:47 lpd Exp $ */
  20. /* Interface to [T]BCP streams */
  21.  
  22. #ifndef sbcp_INCLUDED
  23. #  define sbcp_INCLUDED
  24.  
  25. /* (T)BCPEncode */
  26. /* (no state) */
  27. extern const stream_template s_BCPE_template;
  28. extern const stream_template s_TBCPE_template;
  29.  
  30. /* (T)BCPDecode */
  31. typedef struct stream_BCPD_state_s {
  32.     stream_state_common;
  33.     /* The client sets the following before initialization. */
  34.     int (*signal_interrupt) (P1(stream_state *));
  35.     int (*request_status) (P1(stream_state *));
  36.     /* The following are updated dynamically. */
  37.     bool escaped;
  38.     int matched;        /* TBCP only */
  39.     int copy_count;        /* TBCP only */
  40.     const byte *copy_ptr;    /* TBCP only */
  41. } stream_BCPD_state;
  42.  
  43. #define private_st_BCPD_state()    /* in sbcp.c */\
  44.   gs_private_st_simple(st_BCPD_state, stream_BCPD_state, "(T)BCPDecode state")
  45. extern const stream_template s_BCPD_template;
  46. extern const stream_template s_TBCPD_template;
  47.  
  48. #endif /* sbcp_INCLUDED */
  49.